package com.warm.base.design.s_adapter;

/**
 * @Date: 2019/11/21 11:50
 * @Author: LChuang
 * @Description: 对象适配器 (recommend --> low coupling(低内聚))
 */
public class ObjectAdapter implements ITarget {

    private Adaptee adaptee;

    public ObjectAdapter(Adaptee adaptee){
        this.adaptee = adaptee;
    }

    @Override
    public void target() {
        adaptee.adaptee();
    }
}
